//import angular core
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { FormsModule }    from '@angular/forms';

//import my modules
import { AppRoutingModule } from './app-routing.module';
import { PhotoModule } from './photo/photo.module';

//import my components
import { AppComponent } from './app.component';
import { NavbarComponent } from './navbar/navbar.component';
import { XiaoRenComponent } from './xiao-ren/xiao-ren.component';

@NgModule({
  declarations: [
    AppComponent,
    NavbarComponent,
    XiaoRenComponent
  ],
  imports: [
    BrowserModule,
    HttpModule,
    FormsModule,
    AppRoutingModule,
    PhotoModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
